Sets the value of this property in the specified object. Gets or sets the LastName.
Syntax
Example
C# | Copy Code |
---|
// Sample auto-generated property
/// Gets or sets the LastName.
[Bindable(true, BindingDirection.TwoWay)]
[Editable(true)]
[Display(Name="LastName", AutoGenerateField=true)]
[IbVal.ValidateProperty]
[IbVal.StringLengthVerifier(MaxValue=30, IsRequired=true, ErrorMessageResourceName="Employee_LastName")]
[DataMember]
public string LastName {
get { return PropertyMetadata.LastName.GetValue(this); }
set { PropertyMetadata.LastName.SetValue(this, value); }
}
#endregion LastName property |
Remarks
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also